package br.com.wagnerpaz.battlemaniacs.model;

import static br.com.wagnerpaz.battlemaniacs.model.Attribute.HP;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

import br.com.wagnerpaz.battlemaniacs.model.action.AttackAction;

public class Battle
{
	private Fighter[] allies;
	private Fighter[] enemies;
	
	private int turn;
	
	public Battle(Fighter[] allies, Fighter[] enemies)
	{
		if(allies == null)
		{
			throw new IllegalArgumentException("Allies array cannot be null or empty");
		}
		
		if(enemies == null)
		{
			throw new IllegalArgumentException("Enemies array cannot be null or empty");
		}
		
		this.allies  = allies;
		this.enemies = enemies;
	}
	
	public void start()
	{
		
	}
	
	public static void main(String[] args) throws FileNotFoundException
	{
		Fighter f1 = XMLStorer.retrieveFighter(new FileInputStream(new File("C:/teste.xml")));
		Fighter f2 = XMLStorer.retrieveFighter(new FileInputStream(new File("C:/teste2.xml")));
		
		Battle battle = new Battle( new Fighter[]{f1}, new Fighter[]{f2} );
		battle.start();
	}
}